package com.apes.framework.plugin.soe.metadata;

import com.apes.framework.jpa.BaseModel;
import com.apes.framework.jpa.DefaultPersistListener;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * 功能：操作符
 *
 * @author xul
 * @create 2018-09-21 13:52
 */
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = Operate.CONST_TABLE_NAME)
public class Operate extends BaseModel {
    public static final String CONST_TABLE_NAME = "soe_operate";

    @Id
    @Column(name = "id", length = 32)
    private String id;   //编码

    @Column(name = "name", nullable = false, length = 120)
    private String name; //名称

}
